package org.unisannio.sc;




import android.app.TabActivity;
import android.content.Intent;

import android.os.Bundle;
import android.os.Handler;
import android.widget.TabHost;


public class MainActivity extends TabActivity {
	
	public static Handler handler=new Handler();
	private TabHost host;

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		

		host=getTabHost();
		host.addTab(host.newTabSpec("Contacts").setIndicator("Contacts").setContent(new Intent(this, ContactsActivity.class)));
		host.addTab(host.newTabSpec("Friends").setIndicator("Friends").setContent(new Intent(this, AddressListActivity.class)));
		host.addTab(host.newTabSpec("content").setIndicator("Results").setContent(new Intent(this, ResultActivity.class)));
		
		
	}
	
	public void switchTab(int tab){
		host.setCurrentTab(tab);
	}
}